<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/4
 * Time: 19:45
 */

namespace App\Http\Classes;


class Unit
{
    private $grade;
    private $book;
    private $unit;
    private $unit_en;
    private $root;
    private $dir;

    private $lesson_id;
    private $book_id;
    private $material_id;

    private $sentences = [];
    private $words = [];

    private $materialTableName = 'materials';
    private $bookTableName = 'books';
    private $lessonTableName = 'lessons';

    private $materialDB = null;
    private $bookDB = null;
    private $lessonDB = null;

    public function __construct($grade, $book, $unit)
    {
        $this->root = public_path() . '\\hub\\';
        $this->dir = $this->root . $grade . '\\' . $book . '\\' . $unit . '\\';
    }

    private function createMaterial()
    {

    }


    private function createBook()
    {

    }

    private function createLesson()
    {

    }

    public function sentencesPush($number, $sentence, $sentence_meaning, $word = '', $word_meaning = '', $word_phonogram = '')
    {

    }

    public function wordsPush($number, $sentence, $sentence_meaning, $word = '', $word_meaning = '', $word_phonogram = '')
    {

    }
}